package a.h;

import java.beans.PropertyChangeListener;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;

public class cc
  implements xc
{
  public static final String a = "OptionGroup.title";
  private Collection b = null;
  private final vb c = new vb(this);
  public static int d;
  
  public ec a(ec paramec)
  {
    int i = ec.t;
    if (i == 0)
    {
      if (this.b == null) {
        this.b = new HashSet();
      }
      this.b.add(paramec);
    }
    Object localObject = paramec.c(ec.d);
    if (i == 0)
    {
      if ((localObject instanceof Collection)) {
        ((Collection)localObject).add(this);
      }
    }
    else if (!ec.s) {
      return paramec;
    }
    HashSet localHashSet = new HashSet();
    localHashSet.add(this);
    paramec.a(ec.d, localHashSet);
    return paramec;
  }
  
  public void b(ec paramec)
  {
    int i = ec.t;
    if (paramec != null)
    {
      if (i != 0) {
        break label40;
      }
      if (this.b != null) {}
    }
    else
    {
      return;
    }
    this.b.remove(paramec);
    label40:
    Object localObject = paramec.c(ec.d);
    if ((i != 0) || ((localObject instanceof Collection)))
    {
      Collection localCollection = (Collection)localObject;
      localCollection.remove(this);
      if (localCollection.isEmpty()) {
        paramec.d(ec.d);
      }
    }
  }
  
  public boolean c(ec paramec)
  {
    return this.b.contains(paramec);
  }
  
  public Iterator a()
  {
    if (this.b == null) {
      return Collections.EMPTY_LIST.iterator();
    }
    new Iterator()
    {
      final Iterator a = cc.this.b.iterator();
      
      public void remove()
      {
        throw new UnsupportedOperationException();
      }
      
      public boolean hasNext()
      {
        return this.a.hasNext();
      }
      
      public Object next()
      {
        return this.a.next();
      }
    };
  }
  
  public Object a(String paramString)
  {
    return this.c.a(paramString);
  }
  
  public void b(String paramString)
  {
    this.c.b(paramString);
  }
  
  public void a(String paramString, Object paramObject)
  {
    this.c.a(paramString, paramObject);
  }
  
  public void c(PropertyChangeListener paramPropertyChangeListener)
  {
    this.c.c(paramPropertyChangeListener);
  }
  
  public void d(PropertyChangeListener paramPropertyChangeListener)
  {
    this.c.d(paramPropertyChangeListener);
  }
  
  public void c(String paramString, PropertyChangeListener paramPropertyChangeListener)
  {
    this.c.c(paramString, paramPropertyChangeListener);
  }
  
  public void d(String paramString, PropertyChangeListener paramPropertyChangeListener)
  {
    this.c.d(paramString, paramPropertyChangeListener);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.h.cc

 * JD-Core Version:    0.7.0.1

 */